package com.cy.chatTest.common;

public class StringUtils {

    public static boolean isEmpty(String string) {
        if (string == null || string.equals(""))
            return true;
        return false;
    }

    /**
     * 验证邮箱格式
     * @param email
     * @return
     */
    public static boolean isEmail(String email) {
            return email.matches("^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$");
    }


}
